#include <iostream>

using namespace std;

class Cat{
    public:
    Cat(int age,string name,float weight);
    Cat();
    void setCat(int _age,string _name,float _weight){
        age = _age;
        name = _name;
        weight = _weight;
    }
    private:
    int age;
    string name;
    float weight;
};
 Cat::Cat(int age ,string name ,float weight){
    cout<<"这是猫的年龄:"<<age<<endl;
    cout<<"这是猫的名字:"<<name<<endl;
    cout<<"这是猫的体重:"<<weight<<endl;
}
Cat::Cat(){
    cout<<"无参构造"<<endl;
}
int main(int argc, char const *argv[])
{
    Cat (3,"xiaomao",9.9);
    Cat c1;
    Cat *c2 =new Cat;
    
    delete c2;
    return 0;
}
